#include <iostream>
using std::cout;
using std::endl;


void test0(){
    [](int value){
        cout << value<<endl; 
    }(100);
}

void test(){
    int a = 10;
    int b = 111;
    int c = 999;
    [=,&c](int value){
        cout << value<<endl;
        cout << a << endl;
        cout << b << endl;
        c = 9999;
    }(100);
    cout << "c : " << c << endl;
}
int main()
{
    

    test ();
    return 0;
}

